<?php 
namespace Member\Controller;

class ReplyController extends ManageController {
	//关注时回复设置
	function attention($appid) {
		if (IS_POST) {
			$model = D('ReplyAttention');
			if ($model->update()) {
				$this->success('保存成功！');
			}else {
				$this->error('保存失败！');
			}
		}else {
			$map['uid'] = UID;
			$map['appid'] = I('get.appid');
			$info = M('ReplyAttention')->where($map)->find();
			$this->assign('info', $info);
			$this->title('关注时回复');
			$this->display();
		}
	}
}